package varargs;


public class VarArgsExample {
	void methodAne (String... x) {
		for (int i = 0; i < x.length; i++) {
			System.out.println(x[i]);
		}
	}
	
	void methodCoba () {
		String satu = "satu";
		String dua = "dua";
		String tiga = "tiga";
		methodAne();
		methodAne (satu);
		methodAne (satu,dua);
		methodAne (satu,dua,tiga);
		
		String[] xArray = {satu,dua,tiga};
		methodAne(xArray);
	}
}
